<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--><html class="no-js"><!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->
        <title>
            Sistem Pendapatan Asli Daerah - Log In
        </title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width">
        <!--<script src="./javascripts/1.3.0/init.min.js" type="text/javascript"></script>-->
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700" rel="stylesheet" type="text/css">
        <link href="<?php echo Yii::app()->request->baseUrl; ?>/css/adminflare/black-blue/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" id="bootstrap-css">
        <link href="<?php echo Yii::app()->request->baseUrl; ?>/css/adminflare/black-blue/adminflare.min.css" media="all" rel="stylesheet" type="text/css" id="adminflare-css">
        <link href="<?php echo Yii::app()->request->baseUrl; ?>/css/adminflare/black-blue/pages.min.css" media="all" rel="stylesheet" type="text/css" id="pages-css">
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/javascripts/1.3.0/modernizr-jquery.min.js" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/javascripts/1.3.0/adminflare-demo.min.js" type="text/javascript"></script>
        <!--[if lte IE 9]>
                <script src="assets/javascripts/jquery.placeholder.min.js" type="text/javascript"></script>
                <script type="text/javascript">
                        $(document).ready(function () {
                                $('input, textarea').placeholder();
                        });
                </script>
        <![endif]-->
        <script type="text/javascript">
            $(document).ready(function() {
//                $('#signin-container').submit(function() {
//                    document.location = 'dashboard.html';
//                    return false;
//                });

                var updateBoxPosition = function() {
                    $('#signin-container').css({
                        'margin-top': ($(window).height() - $('#signin-container').height()) / 2
                    });
                };
                $(window).resize(updateBoxPosition);
                setTimeout(updateBoxPosition, 50);
            });
        </script>
    </head>
    <body class="signin-page">
        <!-- Page content
                ================================================== -->
        <section id="signin-container">
            <a href="#" title="Sistem Informasi Pendapatan Asli Daerah" class="header">
                <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/af-logo-signin.png" alt="Login ke sistem">
                <span>
                    Login<br>
                    <strong>Sistem PAD</strong>
                </span>
            </a>
            <?php
            $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
                'id' => 'horizontalForm',
                'type' => 'horizontal',
                'enableClientValidation' => true,
                'focus' => array($model, 'username'),
                'clientOptions' => array(
                    'validateOnSubmit' => true,
                ),
            ));
            ?>
                <div class="fields">
                    <?php echo $form->textField($model, 'username', array('id' => 'id_username', 'placeholder' => 'Username', 'tabindex' => '1')); ?>
                    <?php echo $form->passwordField($model, 'password', array('id' => 'id_password', 'placeholder' => 'Password', 'tabindex' => '1')); ?>
                </div>
                <button type="submit" class="btn btn-primary btn-block" tabindex="4">Sign In</button>
                <?php // echo CHtml::submitButton('Sign In', array('class' => 'btn btn-primary btn-block', 'tabindex' => '4')); ?>
            <?php $this->endWidget(); ?>
        </section>
    </body>
</html>